// 公共配置项
import commonConfig from '../../../common-config';
// 模版
import template1 from './template1';

// 数据配置
const datas = {
	preview_color: {
		title: "背景",
		type: "bg",
		value: {
			isColor: '1',
			color: "#ffffff",
			image: ""
		}
	},
	// text_size: {title: '会员名称文字大小', type: 'bar', value: 16, min: 12, max: 32},
	text_color: {title: '会员名称文字颜色', type: 'color', value: '#333333'},
	show_validity: {title: '会员有效期显示', type: 'switch', value: false},
	validity_day_color: {title: '会员有效期文字颜色', type: 'color', value: '#333333'},
	show_ID: {title: '会员ID显示', type: 'switch', value: true},
	id_text_color: {title: '会员ID文字颜色', type: 'color', value: '#333333',showBy: 'show_ID'},
	show_grade: {title: '会员等级显示', type: 'switch', value: true},
	invite_text_color: {title: '邀请码文字颜色', type: 'color', value: '#333333'},
	choose_style: {
		title: '会员等级样式',
		type: 'radio',
		value: 'one',
		options: [
			{label: '样式一', value: 'one'},
			{label: '样式二', value: 'two'},
			{label: '样式三', value: 'three'},
			{label: '样式四', value: 'four'},
			{label: '样式五', value: 'five'},
		]
	},
	style_align: {
		title: '样式对齐方式',
		type: 'radio',
		value: 'left',
		options: [
			{label: '居左', value: 'left'},
			{label: '居中', value: 'center'},
			{label: '居右', value: 'right'}
		]
	},
	grade_type: {
		title: '会员等级类型',
		type: 'radio',
		value: '1',
		options: [
			{label: '会员等级', value: '1'},
			{label: '经销商等级', value: '2'},
			{label: '分销商等级', value: '3'}
		]
	},

	second_text_size: {title: '文字大小', type: 'bar', value: 12, min: 12, max: 50},
	second_text_color: {title: '文字颜色', type: 'color', value: '#333333'},
	second_text_style: {
		title: "文字样式",
		type: "textstylebox",
		value: [],
	}
};

// 样式配置
const styles = {};

export const config = commonConfig.merge({
	datas,
	styles,
	layout: [
		template1
	]
});
